package com.bf.electroplating.pojo.vo.home;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 企业设备树VO
 * 
 * @author gzd
 * @since 2025-09-22
 */
@Data
@Schema(description = "企业设备树VO")
public class EnterpriseDeviceTreeVO {

    @Schema(description = "节点ID")
    private String id;

    @Schema(description = "节点名称")
    private String name;

    @Schema(description = "节点类型：company-企业，monitoringPoint-监控点，device-设备")
    private String type;

    @Schema(description = "父节点ID")
    private String parentId;

    @Schema(description = "设备ID（仅设备节点有值）")
    private String deviceId;

    @Schema(description = "企业ID")
    private String companyId;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "监控点ID")
    private String monitoringPointId;

    @Schema(description = "监控点名称")
    private String monitoringPointName;

    @Schema(description = "子节点列表")
    private List<EnterpriseDeviceTreeVO> children;

    @Schema(description = "状态1绿2红")
    private String status ="1";

    @Schema(description = "是否展开")
    private Boolean expanded = false;

    @Schema(description = "是否叶子节点")
    private Boolean leaf = false;
}
